package zhh.tangbao.user.entity;

import lombok.Data;
import zhh.tangbao.system.entity.DaoEntity;

/**
 * @author 粥灰灰
 * @created 2022/8/20
 * @version 1.0
 * @Description 存放用户的基本信息
 */

public class User extends DaoEntity {

    /** 用户id */
    private String id;

    /** 用户登录用的账号，账号不可重复 */
    private String userAccount;

    /** 用户的账号名称，类似于昵称 */
    private String userName;

    /** 用户头像地址 */
    private String userAvatar;


    /** 用户的密码 */
    private String password;

    /** 用户性别 */
    private Integer gender;

    private String roleId;

    public String getId() {
        return id;
    }

    public User setId(String id) {
        this.id = id;
        return this;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public User setUserAccount(String userAccount) {
        this.userAccount = userAccount;
        return this;
    }

    public String getUserName() {
        return userName;
    }

    public User setUserName(String userName) {
        this.userName = userName;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public User setPassword(String password) {
        this.password = password;
        return this;
    }

    public Integer getGender() {
        return gender;
    }

    public User setGender(Integer gender) {
        this.gender = gender;
        return this;
    }

    public String getRoleId() {
        return roleId;
    }

    public User setRoleId(String roleId) {
        this.roleId = roleId;
        return this;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public User setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
        return this;
    }
}
